package com.hnichr.ump.common.plan.entity;

import com.hnichr.ump.common.entity.UmpEntity;
import com.mxpioframework.jpa.annotation.Generator;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "t_plan_group")
@Schema(description = "重点工作角色组表")
public class PlanGroup extends UmpEntity {
    @Id
    @Generator
    @Column(name = "ID_", updatable = false,length = 64)
    @Schema(description = "ID")
    private String id;

    @Schema(description = "群组代码")
    @Column(name = "GROUP_CODE_", length=20)
    private String groupCode;

    @Schema(description = "群组名称")
    @Column(name = "GROUP_NAME_", length=60)
    private String groupName;

    @Schema(description = "群组描述")
    @Column(name = "GROUP_DESC_", length=255)
    private String groupDesc;
}
